<style>
    #filterByTime input {
        border: 1px #a9a9a9 solid;
    }
</style>
<div class="form-group" id="data_5">
    <form action="" method="GET" id="filterByTime">
        <select name="time_field" id="timefield-select" class="input-sm">
            <option value="create_time">咨询日期</option>
            <option value="status_time">签约日期</option>
            <option value="returnvisit_time">下次回访日期</option>
        </select>
        <div class="input-daterange" style="display: inline-block;" id="datepicker">
            <input type="text" class="input-sm " name="start" autocomplete="off" placeholder='选择开始时间' />
            <span class="">到</span>
            <input type="text" class="input-sm" name="end" autocomplete="off" placeholder='选择结束时间' />
        </div>

        <!-- 选择字段 -->
        <select name="field" id="field-select" class="input-sm">
            <option value="sname">学生姓名</option>
            <option value="zxr_tel">学生电话</option>
            <option value="infosource">来源</option>
            <option value="current_school">在读院校</option>
            <option value="source_details">来源明细</option>
            <option value="receptionist">接待员工</option>
            <option value="consultant">咨询顾问</option>
        </select>
        <!-- 输入或选择关键字 -->
        <input type="text" name="key" id="searchInput" class="input-sm" placeholder="请输入关键词" autocomplete="off">
        <select type="text" disabled name="key" id="searchSelect" class="input-sm" style="display: none;"
            placeholder="请输入关键词" autocomplete="off">
            {foreach $receptionist as $val}
            <option value="{$val.id}">{$val.username}</option>
            {/foreach}
        </select>
        
        <div style="display: none;" id="searchSelecttpl">
            <div id="consultant">
                {foreach $consultant as $val}
                <option value="{$val.id}">{$val.username}</option>
                {/foreach}
            </div>
            <div id="receptionist">
                {foreach $receptionist as $val}
                <option value="{$val.id}">{$val.username}</option>
                {/foreach}
            </div>
        </div>

        <button type="submit" class="input-sm btn btn-primary">筛选</button>
    </form>
</div>